package com.skyvin.nreceipts.common.service;

import org.springframework.beans.factory.annotation.Autowired;

import com.skyvin.nreceipts.user.service.UserService;

public class BaseService {
	@Autowired 
	UserService userServiceRef;
	
	public String getMyCollection(Class classVal) {
		return userServiceRef.getCurrentUserPID()+ classVal.getSimpleName();
	}
	
	public String getCollection(String userPID, Class classVal) {
		return userPID + classVal.getSimpleName();
	}
}
